var express = require('express');
var bodyParser = require('body-parser');
var app = express();
var rootDir = express.static('./public');
app.use(rootDir);
app.use(bodyParser.urlencoded({extended:false}));
app.post('/users', (req, res) => {
    var username = req.body.username;
    var password = req.body.password;
    if (username == '991283296@qq.com' && password == '123123') {
        res.send('登录成功');
    } else {
        res.send('登录失败');
    }
});
app.listen(3309);